#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int main()
{
	string s1;
	string s2("hello world");
	string s3 = s2;
	string s4(s2);

	cout << s1 << endl;
	cout << s2 << endl;
	cout << s3 << endl;
	cout << s4 << endl;

	string s5(s2, 1, 6);
	cout << s5 << endl;

	string s6(s2, 1);
	cout << s6 << endl;

	string s7(s2, 1, 100);
	cout << s7 << endl;

	string s8("hello world", 5);
	cout << s8 << endl;

	string s9(10, 'x');
	cout << s9 << endl;

	s1 = s2;
	cout << s1 << endl;

	s1 = "world";
	cout << s1 << endl;

	s1 = 'x';
	cout << s1 << endl;

	return 0;
}


